from rest_framework.serializers import ModelSerializer
from apps.courses.models import *


# 类型的序列化
class CourseTypeSer(ModelSerializer):
    class Meta:
        model=CourseType
        fields='__all__'



class CourseSer(ModelSerializer):
    class Meta:
        model=Course
        fields='__all__'


